export function movePoint(
  point: { x: number; y: number },
  offset: { x?: number; y?: number },
) {
  if (offset.x) {
    point.x += offset.x;
  }
  if (offset.y) {
    point.y += offset.y;
  }
  return point;
}

export function movePoints(
  points: { x: number; y: number }[],
  offset: { x?: number; y?: number },
) {
  return points.map((point) => movePoint(point, offset));
}
